package chapter04;

public class Example05 {
    public static void main(String[] args){
        int[] arr = new int[10];
        int[][] twoDimensionalArray = new int[10][10];
        int[] a = {1,2,3,4,5,8,7,6,9,0};
        for(int i = 0;i < a.length-1;i++) {
            for (int j = 0; j < a.length-1-i; j++) {
                if (a[j] > a[j + 1]) {
                    int t = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = t;
                }
            }
        }
        for(int i = 0;i < a.length;i++) {
            System.out.println(a[i]);
        }

    }
}
